//
//  countdownModel.h
//  HaoHint
//
//  Created by winter on 16/5/23.
//  Copyright © 2016年 wd. All rights reserved.
//

#import <Foundation/Foundation.h>

typedef NS_ENUM(NSInteger, CountdownModelRemindStyle) {
    CountdownModelRemindStyleNone = -1,
    CountdownModelRemindStyleNow = 0,
    CountdownModelRemindStyle_Early1Min = 1,
    CountdownModelRemindStyle_Early2Min = 2,
    CountdownModelRemindStyle_Early3Min = 3,
    CountdownModelRemindStyle_Early5Min = 5,
    CountdownModelRemindStyle_Early10Min = 10,
    CountdownModelRemindStyle_Early20Min = 20,
    CountdownModelRemindStyle_Early30Min = 30,
    CountdownModelRemindStyle_Early1Hour = 60
};

@interface CountdownModel : NSObject <NSCoding>

@property (nonatomic, copy, readonly) NSString *countdownID;

@property (nonatomic, copy) NSString *timeTitle;
@property (nonatomic, copy) NSString *alertBody;

// 铃声名
@property (nonatomic, copy) NSString *preSoundName;
@property (nonatomic, copy) NSString *soundName;
@property (nonatomic, copy,readonly) NSString *soundTitle;

/** 00:00:00秒 */
@property (nonatomic, copy) NSString *countdownTime;
/** 倒计时间 秒 */
@property (nonatomic, assign, readonly) NSInteger timeSecond;

//  提醒类型
@property (nonatomic, assign) CountdownModelRemindStyle remindEarlyType;
//  提醒类型，1分钟前 & 发生时
@property (nonatomic, copy, readonly) NSString *remindString;

/** 是否可以提前提醒 */
@property (nonatomic, getter=isPreRemind) BOOL preRemind;
/** 是否正在计时 */
@property (nonatomic, getter=isCountdowning) BOOL countdowning;
@end
